﻿<!DOCTYPE html>
<html>
<head>	
<meta charset="utf-8" />
<title>Dengo - Búsqueda</title>
<link rel="shortcut icon" href="img/icono.ico" />
<link href="styles/rondabout.css" rel="stylesheet" type="text/css" />		
<link href="styles/maquetaParsers.css" rel="stylesheet" rel="stylesheet" />	

<script>
function buscar() {
    if (document.getElementById('buscar').value != "" && document.getElementById('buscar').value != "Buscá un tema") {
		location.href= "buscar.php?keyword=" + document.getElementById('buscar').value;
		return false;
	}
}
</script>
<script>
function ordenarPaginas(cantidadDePaginas) {
    
	for(i = 1; i <= cantidadDePaginas; i++) { 
		if (i == 1) {
		   document.getElementById(i).style.visibility = "visible";
		   document.getElementById(1000+i).style.fontWeight = "700";
		   document.getElementById(1000+i).style.textDecoration = "none";
		 }else{
		   document.getElementById(i).style.visibility = "hidden";
		   document.getElementById(1000+i).style.fontWeight = "normal";
		   document.getElementById(1000+i).style.textDecoration = "underline";
		  }
     }
}
</script>
<script>
function cambiarPagina(numeroDePagina, cantidadDePaginas) {
    
	for(i = 1; i <= cantidadDePaginas; i++) { 
		if (i == numeroDePagina) {
		   document.getElementById(i).style.visibility = "visible";
		   document.getElementById(1000+i).style.fontWeight = "700";
		   document.getElementById(1000+i).style.textDecoration = "none";
		 }else{
		   document.getElementById(i).style.visibility = "hidden";
		   document.getElementById(1000+i).style.fontWeight = "normal";
		   document.getElementById(1000+i).style.textDecoration = "underline";
		  }
     }
}
</script>
</head>

<body>

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>



	<div id="cabecera">
		<div id="fondoCabecera">
			<img src="img/fondoCabecera.jpg" border="0" usemap="#logoMap"
				class="imagenFondoCabecera">
			<map name="logoMap">
				<area shape="circle" coords="118,77,91" href="index.php">
			</map>
		</div>
		<?php include_once('functions/obtener_str_fecha_hora.php') ?>
		<div id="textoCabecera">
			<label class="fechaYHora"><?php echo obtener_str_fecha_hora();?> </label>
			<p>&nbsp;</p>
			<p>La objetividad la armás vos...</p>
		</div>

		<p>&nbsp;</p>
		<p>&nbsp;</p>
		<p>&nbsp;</p>
		<p>
		
		
		<div class="fb-like" data-send="false" data-layout="button_count"
			data-width="450" data-show-faces="false"></div>
		</p>

		<div style='width: 180px; height: 100px; background-image: url( http://vortex.accuweather.com/adcbin/netweather_v2/backgrounds/silver_180x150_bg.jpg ); background-repeat: no-repeat; position: absolute; left: 510px; top: 10px; background-color: #86888B;'>
			<div id='NetweatherContainer' style='height: 138px;'>
				<script
					src='http://netweather.accuweather.com/adcbin/netweather_v2/netweatherV2ex.asp?partner=netweather&tStyle=whteYell&logo=1&zipcode=SAM|AR|AR007|BUENOS AIRES|&lang=esp&size=8&theme=silver&metric=1&target=_self'></script>
			</div>
			<div style='text-align: center; font-family: arial, helvetica, verdana, sans-serif; font-size: 10px; line-height: 12px; color: #FFFFFF;'>
				
			</div>
		</div>

	</div>
    
    <div id="barraDeBusqueda"> 

      <input  id="buscar" type="text" class="inputBox"  onClick = "if(this.value=='Buscá un tema') this.value=''" value="Buscá un tema"/><img src="img/searchButton.jpg" onClick="buscar();" class="searchButton">      
      
    </div>
    
<div id="cuerpo">		
<?php
	include_once('functions/imprimir_noticias_de_una_busqueda.php');
	include_once('classes/Noticia.php');
	include_once('parsers/parser.php');
	include_once('functions/search.php');
	include_once('properties/rss_feeds.php');

	$keyword = $_GET["keyword"];
	//echo "<title>Titulares que contienen la palabra $keyword en el titulo</title>";
	
	$noticias = search($keyword,$vector_rss, $vector_diarios);
	echo "<p><a class='descripcion'> Resultado de la búsqueda: ". $keyword . "</a> </p>";
	
	imprimir_noticias($noticias, $vector_rss, $vector_diarios, $keyword);
?>

</div>
   <a class="linkSubir" href="#cabecera">Volvé al inicio de la página</a>
   <div id="barraInferior">
    <table align="center" width="700" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td align="center" width="250">2013 - Dengo <br> 
       Contacto: dengo.web@gmail.com </td>
       <td ><div align="right" class="fb-follow" data-href="http://www.facebook.com/pages/Dengo/401447709954306?cropsuccess&success=1" data-show-faces="true" data-width="450"></div></td>
     </tr>
   </table>
         <p>&nbsp;</p>
		</div>
        <p>&nbsp;</p>
</body>
</html>